<template>
  <div>
    <el-row class="mb-4">
      <el-button class="but" @click="info">个人中心</el-button>
    </el-row>
  </div>
</template>

<script lang="ts" setup>
import {useRouter} from "vue-router";
import {userInfo} from "../../utils/constant";

const router = useRouter();

const info = () => {
  router.push({
    name: 'info',
    query: {
      userId: userInfo().id,
    }
  })
}

</script>

<style scoped>
.but{
  flex: 1;
  height: 50px;
  margin: 5px 0;
}
</style>